package com.hq.commons.utils;

import org.springframework.security.crypto.bcrypt.BCrypt;

public class PassWordUtils {
    public static String hashPws(String password) {

        return BCrypt.hashpw(password,BCrypt.gensalt());
    }

    public static Boolean checkPw(String pw,String dbpw) {
        return BCrypt.checkpw(pw,dbpw);
    }
}
